package org.zcl.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 *
 * @author: ZCL
 * @since: 2021/10/18 14:08
 */
@Component
public class CustomEventHandler implements ApplicationListener<CustomEvent> {
    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println("事件监听器监听到该事件");
        System.out.println(event.toString());
    }
}
